home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 1.0 for Developers / QuickTime 1.0 for Developers.iso / Movies / Movie Browser / Movie Browser / card_4249.xml < prev    next >
Extensible Markup Language  |  1991-09-10  |  13KB  |  317 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  3. <card>
  4.     <id>4249</id>
  5.     <filler1>0</filler1>
  6.     <cantDelete> <false /> </cantDelete>
  7.     <showPict> <true /> </showPict>
  8.     <dontSearch> <false /> </dontSearch>
  9.     <owner>3650</owner>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_3221.css" />
  11.     <part>
  12.         <id>1</id>
  13.         <type>field</type>
  14.         <visible> <true /> </visible>
  15.         <dontWrap> <false /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <false /> </fixedLineHeight>
  19.         <autoTab> <false /> </autoTab>
  20.         <lockText> <true /> </lockText>
  21.         <rect>
  22.             <left>7</left>
  23.             <top>36</top>
  24.             <right>219</right>
  25.             <bottom>121</bottom>
  26.         </rect>
  27.         <style>scrolling</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>left</textAlign>
  36.         <font>Geneva</font>
  37.         <textSize>9</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <textHeight>12</textHeight>
  40.         <name>folders</name>
  41.         <script>on mouseUpput the value of the clickLine into theFolderif theFolder is not empty thenPut theFolder & ":" after cd field volNameset cursor to watchput getFileNames(cd field volName,true,"MooV") into cd field foldersput getFileNames(cd field volName,false,"MooV") into cd field theListSetFolderTitle theFolderend ifend mouseUp</script>
  42.     </part>
  43.     <part>
  44.         <id>3</id>
  45.         <type>field</type>
  46.         <visible> <false /> </visible>
  47.         <dontWrap> <false /> </dontWrap>
  48.         <dontSearch> <false /> </dontSearch>
  49.         <sharedText> <false /> </sharedText>
  50.         <fixedLineHeight> <false /> </fixedLineHeight>
  51.         <autoTab> <false /> </autoTab>
  52.         <lockText> <false /> </lockText>
  53.         <rect>
  54.             <left>1</left>
  55.             <top>128</top>
  56.             <right>224</right>
  57.             <bottom>144</bottom>
  58.         </rect>
  59.         <style>rectangle</style>
  60.         <autoSelect> <false /> </autoSelect>
  61.         <showLines> <false /> </showLines>
  62.         <wideMargins> <false /> </wideMargins>
  63.         <multipleLines> <false /> </multipleLines>
  64.         <reservedFamily> 0 </reservedFamily>
  65.         <titleWidth>0</titleWidth>
  66.         <icon>0</icon>
  67.         <textAlign>left</textAlign>
  68.         <font>Geneva</font>
  69.         <textSize>9</textSize>
  70.         <textStyle>bold</textStyle>
  71.         <textHeight>12</textHeight>
  72.         <name>volName</name>
  73.         <script></script>
  74.     </part>
  75.     <part>
  76.         <id>8</id>
  77.         <type>button</type>
  78.         <visible> <true /> </visible>
  79.         <reserved5> 0 </reserved5>
  80.         <reserved4> 0 </reserved4>
  81.         <reserved3> 0 </reserved3>
  82.         <reserved2> 0 </reserved2>
  83.         <reserved1> 0 </reserved1>
  84.         <enabled> <true /> </enabled>
  85.         <rect>
  86.             <left>60</left>
  87.             <top>18</top>
  88.             <right>213</right>
  89.             <bottom>33</bottom>
  90.         </rect>
  91.         <style>shadow</style>
  92.         <showName> <true /> </showName>
  93.         <highlight> <false /> </highlight>
  94.         <autoHighlight> <false /> </autoHighlight>
  95.         <sharedHighlight> <true /> </sharedHighlight>
  96.         <family>0</family>
  97.         <titleWidth>0</titleWidth>
  98.         <icon>0</icon>
  99.         <textAlign>center</textAlign>
  100.         <font>Geneva</font>
  101.         <textSize>9</textSize>
  102.         <textStyle>bold</textStyle>
  103.         <name>Actions</name>
  104.         <script>on mouseDownif the short name of me is "<root level>" then exit mouseDownput cd field volName into fooput the number of chars in foo - 1 into nrepeat until char n of foo = ":"subtract 1 from nend repeatput BuildPopUp (char 1 to n of foo)¬¨into theMenuItemsget PopUpMenu (theMenuItems, 0, left of me+1, bottom of me)If it > 0 thenput item it of theMenuItems into vNameput 1 into irepeat the number of items in theMenuItems - it + 1repeat while char i of cd field volName ‚↠":"add 1 to iend repeatadd 1 to iend repeatsubtract 1 from iput char 1 to i of cd field volName into cd field volNameset cursor to watchput getFileNames(cd field volName,true,"MooV") into cd field foldersput getFileNames(cd field volName,false,"MooV") into cd field theListif it = the number of items in theMenuItems thenput "<root level>" into vNameend ifSetFolderTitle vNameend ifend mouseDown</script>
  105.     </part>
  106.     <part>
  107.         <id>9</id>
  108.         <type>button</type>
  109.         <visible> <true /> </visible>
  110.         <reserved5> 0 </reserved5>
  111.         <reserved4> 0 </reserved4>
  112.         <reserved3> 0 </reserved3>
  113.         <reserved2> 0 </reserved2>
  114.         <reserved1> 0 </reserved1>
  115.         <enabled> <true /> </enabled>
  116.         <rect>
  117.             <left>60</left>
  118.             <top>1</top>
  119.             <right>213</right>
  120.             <bottom>16</bottom>
  121.         </rect>
  122.         <style>shadow</style>
  123.         <showName> <true /> </showName>
  124.         <highlight> <false /> </highlight>
  125.         <autoHighlight> <false /> </autoHighlight>
  126.         <sharedHighlight> <true /> </sharedHighlight>
  127.         <family>0</family>
  128.         <titleWidth>0</titleWidth>
  129.         <icon>0</icon>
  130.         <textAlign>center</textAlign>
  131.         <font>Geneva</font>
  132.         <textSize>9</textSize>
  133.         <textStyle>bold</textStyle>
  134.         <name>QuickTime‚Ñ¢ Beta</name>
  135.         <script>on mouseDownput GetVolNames () into theMenuItemsrepeat with i = 1 to the number of items in theMenuItemsif char 1 of item i of theMenuItems = "*" thendelete char 1 of item i of theMenuItemsend ifend repeatget PopUpMenu (theMenuItems, 0, left of me+1, bottom of me)If it > 0 thenput item it of theMenuItems & ":" into cd field volNameset cursor to watchput getFileNames(item it of theMenuItems & ":",true,"MooV") into cd field foldersput getFileNames(item it of theMenuItems & ":",false,"MooV") ¬¨into cd field theListset name of me to item it of theMenuItemsSetFolderTitle "<root level>"end ifset scroll of cd field folders to 0set scroll of cd field theList to 0end mouseDown</script>
  136.     </part>
  137.     <part>
  138.         <id>10</id>
  139.         <type>field</type>
  140.         <visible> <true /> </visible>
  141.         <dontWrap> <false /> </dontWrap>
  142.         <dontSearch> <false /> </dontSearch>
  143.         <sharedText> <false /> </sharedText>
  144.         <fixedLineHeight> <false /> </fixedLineHeight>
  145.         <autoTab> <false /> </autoTab>
  146.         <lockText> <true /> </lockText>
  147.         <rect>
  148.             <left>5</left>
  149.             <top>141</top>
  150.             <right>219</right>
  151.             <bottom>322</bottom>
  152.         </rect>
  153.         <style>scrolling</style>
  154.         <autoSelect> <false /> </autoSelect>
  155.         <showLines> <false /> </showLines>
  156.         <wideMargins> <false /> </wideMargins>
  157.         <multipleLines> <false /> </multipleLines>
  158.         <reservedFamily> 0 </reservedFamily>
  159.         <titleWidth>0</titleWidth>
  160.         <icon>0</icon>
  161.         <textAlign>left</textAlign>
  162.         <font>Palatino</font>
  163.         <textSize>12</textSize>
  164.         <textStyle>plain</textStyle>
  165.         <textHeight>16</textHeight>
  166.         <name>theList</name>
  167.         <script>on mouseUpPickAFile--put the clicklineend mouseUp</script>
  168.     </part>
  169.     <part>
  170.         <id>15</id>
  171.         <type>button</type>
  172.         <visible> <true /> </visible>
  173.         <reserved5> 0 </reserved5>
  174.         <reserved4> 0 </reserved4>
  175.         <reserved3> 0 </reserved3>
  176.         <reserved2> 0 </reserved2>
  177.         <reserved1> 0 </reserved1>
  178.         <enabled> <true /> </enabled>
  179.         <rect>
  180.             <left>1</left>
  181.             <top>1</top>
  182.             <right>58</right>
  183.             <bottom>16</bottom>
  184.         </rect>
  185.         <style>transparent</style>
  186.         <showName> <true /> </showName>
  187.         <highlight> <false /> </highlight>
  188.         <autoHighlight> <false /> </autoHighlight>
  189.         <sharedHighlight> <true /> </sharedHighlight>
  190.         <family>0</family>
  191.         <titleWidth>0</titleWidth>
  192.         <icon>0</icon>
  193.         <textAlign>center</textAlign>
  194.         <font>Geneva</font>
  195.         <textSize>9</textSize>
  196.         <textStyle>bold</textStyle>
  197.         <name>Volume:</name>
  198.         <script></script>
  199.     </part>
  200.     <part>
  201.         <id>16</id>
  202.         <type>field</type>
  203.         <visible> <true /> </visible>
  204.         <dontWrap> <false /> </dontWrap>
  205.         <dontSearch> <false /> </dontSearch>
  206.         <sharedText> <false /> </sharedText>
  207.         <fixedLineHeight> <false /> </fixedLineHeight>
  208.         <autoTab> <false /> </autoTab>
  209.         <lockText> <true /> </lockText>
  210.         <rect>
  211.             <left>1</left>
  212.             <top>125</top>
  213.             <right>215</right>
  214.             <bottom>140</bottom>
  215.         </rect>
  216.         <style>transparent</style>
  217.         <autoSelect> <false /> </autoSelect>
  218.         <showLines> <false /> </showLines>
  219.         <wideMargins> <false /> </wideMargins>
  220.         <multipleLines> <false /> </multipleLines>
  221.         <reservedFamily> 0 </reservedFamily>
  222.         <titleWidth>0</titleWidth>
  223.         <icon>0</icon>
  224.         <textAlign>left</textAlign>
  225.         <font>Geneva</font>
  226.         <textSize>9</textSize>
  227.         <textStyle>bold</textStyle>
  228.         <textHeight>12</textHeight>
  229.         <name>foldertitle</name>
  230.         <script></script>
  231.     </part>
  232.     <part>
  233.         <id>17</id>
  234.         <type>button</type>
  235.         <visible> <true /> </visible>
  236.         <reserved5> 0 </reserved5>
  237.         <reserved4> 0 </reserved4>
  238.         <reserved3> 0 </reserved3>
  239.         <reserved2> 0 </reserved2>
  240.         <reserved1> 0 </reserved1>
  241.         <enabled> <true /> </enabled>
  242.         <rect>
  243.             <left>0</left>
  244.             <top>18</top>
  245.             <right>57</right>
  246.             <bottom>33</bottom>
  247.         </rect>
  248.         <style>transparent</style>
  249.         <showName> <true /> </showName>
  250.         <highlight> <false /> </highlight>
  251.         <autoHighlight> <false /> </autoHighlight>
  252.         <sharedHighlight> <true /> </sharedHighlight>
  253.         <family>0</family>
  254.         <titleWidth>0</titleWidth>
  255.         <icon>0</icon>
  256.         <textAlign>center</textAlign>
  257.         <font>Geneva</font>
  258.         <textSize>9</textSize>
  259.         <textStyle>bold</textStyle>
  260.         <name>Folder:</name>
  261.         <script></script>
  262.     </part>
  263.     <part>
  264.         <id>18</id>
  265.         <type>button</type>
  266.         <visible> <true /> </visible>
  267.         <reserved5> 0 </reserved5>
  268.         <reserved4> 0 </reserved4>
  269.         <reserved3> 0 </reserved3>
  270.         <reserved2> 0 </reserved2>
  271.         <reserved1> 0 </reserved1>
  272.         <enabled> <true /> </enabled>
  273.         <rect>
  274.             <left>139</left>
  275.             <top>334</top>
  276.             <right>219</right>
  277.             <bottom>349</bottom>
  278.         </rect>
  279.         <style>checkbox</style>
  280.         <showName> <true /> </showName>
  281.         <highlight> <false /> </highlight>
  282.         <autoHighlight> <true /> </autoHighlight>
  283.         <sharedHighlight> <true /> </sharedHighlight>
  284.         <family>0</family>
  285.         <titleWidth>0</titleWidth>
  286.         <icon>0</icon>
  287.         <textAlign>center</textAlign>
  288.         <font>Geneva</font>
  289.         <textSize>9</textSize>
  290.         <textStyle>bold</textStyle>
  291.         <name>Controller</name>
  292.         <script>on mouseUpif there is a window "movie window" thenif the hilite of me thensend showController to window "movie window"elsesend hideController to window "movie window"end ifend ifend mouseUp</script>
  293.     </part>
  294.     <content>
  295.         <layer>card</layer>
  296.         <id>6</id>
  297.         <text>Cherry Juice</text>
  298.     </content>
  299.     <content>
  300.         <layer>card</layer>
  301.         <id>3</id>
  302.         <text>QuickTime‚Ñ¢ Beta:Movies:Video:Play from CD-ROM:Annotation:Actions:</text>
  303.     </content>
  304.     <content>
  305.         <layer>card</layer>
  306.         <id>16</id>
  307.         <text>41 Movies in: Actions</text>
  308.     </content>
  309.     <content>
  310.         <layer>card</layer>
  311.         <id>10</id>
  312.         <text>aliceScreamingbabyBurpballBouncingblowingOutAMatchbowcalculatorcheckMarkchessGamecomeHerecoughcrumplePaperdrillStartdrillStopeggBreakingfingerSnapfortuneCookie1fortuneCookie2hammerANailhandDrillhighFivematchLightingmoneyChangesEverythingpencilBreakingphoneDialingphoneHangUppouringWaterpunchsalute!scissorCutscopingOutshavingsillyMeslapMeFivesmashingRecordspiderToystaplingstop!thumbsUptongueStickOuttrashCanvacuuming</text>
  313.     </content>
  314.     <name></name>
  315.     <script>on PlayMovie movieNameif last char of movieName is ":" then exit PlayMovieif there is a window "Movie Window" thenset replaceMovie of window "Movie Window" to movieNameget the resultif "Error" is in it thenput the resultanswer "Couldn't Play That Movie"exit PlayMovieend ifset loop of window "movie Window" to trueelseput item 3 of the rect of this card + 10 & "," & 10 into movieLocQTMovie OpenMovie, windoid, movieName, movieLoc, loop, nocontrollerget the resultif "Error" is in it thenput the resultanswer "Couldn't Play That Movie"exit PlayMovieend ifset windowName of window ExtractFileName(movieName) to "Movie Window"if the hilite of btn "controller" thensend showController to window "movie window"end ifend ifend PlayMoviefunction buildPopUp fullPathNameput fullPathName into pathrepeat with i = 1 to the number of chars in pathif char i of path = ":" thenput "," into char i of pathelse if char i of path = quote thendelete char i of pathsubtract 1 from iend ifend repeatput the number of items in path into numItemsif last char of path ‚↠"," thensubtract 1 from numItemsdelete last item of pathelsedelete last char of pathend ifrepeat with i = 1 to numItemsput item numItems-i+1 of path into item i of invertedPathend repeatreturn invertedPathend buildPopUpon pickAFileput the value of the clickLine into Movieif Movie is not empty thenput word 2 of the clickLine into myLineSelectLine myLineplayMovie cd field volName & Movieend ifend pickAFileon SetFolderTitle newNameset the name of cd btn id 8 to newNameput the number of lines in cd field theList into numLinesif numLines = 0 thenput "No Movies" into melse if numLines = 1 thenput "The Only Movie" into melseput numLines && "Movies" into mend ifput m & " in: " & newName into cd field folderTitleend SetFolderTitleOn SelectLine nput the number of chars in line 1 to n of cd field thelist + 1¬¨into pos2put pos2 - the number of chars in line n of cd field thelist ¬¨into pos1select char pos1 to pos2 of cd field thelistend SelectLine</script>
  316. </card>
  317.